import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export default new Router({
    routes: [{
        path: '/',
        name: 'login',
        component: () =>
            import ('../views/pages/login.vue')
    }, {
        path: "/HelloWorld",
        name: "HelloWorld",
        component: () =>
            import ('../components/HelloWorld.vue'),
        redirect: { name: 'home' },
        children: [{
                path: '/home',
                name: 'home',
                meta: {
                    title: "首页"
                },
                component: () =>
                    import ('../views/modules/home.vue')
            },
            {
                path: '/other',
                name: 'other',
                meta: {
                    title: "其他"
                },
                component: () =>
                    import ('../views/modules/other')

            },
            {
                path: '/cockpit',
                name: 'cockpit',
                meta: {
                    title: "表格列表"
                },
                component: () =>
                    import ('../views/modules/monitor/cockpit.vue')
            },
            {
                path: '/history',
                name: 'history',
                meta: {
                    title: "组件"
                },
                component: () =>
                    import ('../views/modules/log/history.vue')
            },

        ]
    }]
})